﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Evan.Common
{
    /// <summary>
    /// 抛出异常类
    /// </summary>
    public static class ThrowException
    {
        public static void ApplicationError(HttpContext Context)
        {
            Context.Response.StatusCode = 500;
            Context.Response.TrySkipIisCustomErrors = true;
            Context.Response.ClearContent();
            Context.Response.Write(Evan.Security.SefaTip.ReturnBlueScreen("出错啦", Context.Error));
            Context.Server.ClearError();
            Context.Response.End();
        }
    }
}
